#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

//  样式类
.why-enter {
  opacity: 0;
}
.why-enter-active {
  opacity: 1;
  transition: opacity 1s ease;
}

.why-exit {
  opacity: 1;
}
.why-exit-active {
  opacity: 0;
  transition: opacity 1s ease;
}

.why-appear {
  transform: translateX(100px);
}
.why-appear-active {
  transform: translateX(0);
  transition: transform 1s ease;
}

// 登录
.login-enter {
  transform: translateX(100px);
  opacity: 0;
}

.login-enter-active {
  transform: translateX(0);
  opacity: 1;
  transition: opacity 1s, transform 1s;
}

.login-exit {
  transform: translateX(0);
  opacity: 1;
}

.login-exit-active {
  transform: translateX(-100px);
  opacity: 0;
  transition: opacity 1s, transform 1s;
}
// 数组数字
.num-enter {
  transform: translateX(100px);
  opacity: 0;
}

.num-enter-active {
  transform: translateX(0);
  opacity: 1;
  transition: opacity 1s, transform 1s;
}

// .num-exit {
//   transform: translateX(0);
//   opacity: 1;
// }

// .num-exit-active {
//   transform: translateX(-100px);
//   opacity: 0;
//   transition: opacity 1s, transform 1s;
// }
